package cc.md888.app.application.live;

import cc.md888.app.model.live.CheckLiveCmd;
import cc.md888.app.model.live.CheckLiveResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 账号存活检查
 */
@Component
public class AccountCheckLiveService {

    @Autowired
    private AccountLiveChecker accountLiveChecker;


    public CheckLiveResultVO check(CheckLiveCmd cmd){
        String status = accountLiveChecker.check(cmd.getUid());
        CheckLiveResultVO checkLiveResultVO = new CheckLiveResultVO();
        checkLiveResultVO.setUid(cmd.getUid());
        checkLiveResultVO.setStatus(status);
        return checkLiveResultVO;
    }

}
